package com.hang.model.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class BugModelReq {
    @ApiModelProperty(value = "缺陷id")
    private Long bugId;

    @ApiModelProperty(value = "缺陷标题",required = true)
    @NotBlank
    private String bugTitle;

    @ApiModelProperty(value = "项目id",required = true)
    @NotNull
    private Long itemId;

    @ApiModelProperty(value = "项目名称",required = true)
    @NotBlank
    private String itemName;

    @ApiModelProperty(value = "模块id",required = true)
    @NotNull
    private Long moduleId;

    @ApiModelProperty(value = "模块名称",required = true)
    @NotBlank
    private String moduleName;

    @ApiModelProperty(value = "缺陷类型",required = true)
    @NotNull
    private Integer bugType;

    @ApiModelProperty(value = "优先级",required = true)
    @NotNull
    private Integer priority;

    @ApiModelProperty(value = "严重程度",required = true)
    @NotNull
    private Integer severity;

    @ApiModelProperty(value = "报告人id",required = true)
    @NotNull
    private Long createById;

    @ApiModelProperty(value = "报告人姓名",required = true)
    @NotBlank
    private String createBy;

    @ApiModelProperty(value = "执行人id")
    private Long receiveId;

    @ApiModelProperty(value = "执行人姓名")
    private String receiveName;

    @ApiModelProperty(value = "内容[5-5000字之间]",required = true)
    @Size(min = 5,max = 5000,message = "内容需要在5-5000字之间")
    private String content;

    @ApiModelProperty(value = "附件地址")
    private List<String> fileUrlList;
}
